package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.pojo.OperateLog;
import org.example.pojo.PageResult;

import java.util.List;

@Mapper
public interface LogMapper {

    @Select("select operate_log.id, operate_emp_id, operate_time, class_name, " +
            "method_name, method_params, return_value, cost_time, emp.name as operateEmpName from operate_log,emp " +
            "where  operate_log.operate_emp_id=emp.id order by operate_time desc ")
    List<OperateLog> list();
}
